package com.Arsanesia.TempleRush.Controllers.Listeners.ButtonListeners;

import com.Arsanesia.TempleRush.TempleRush;
import com.Arsanesia.TempleRush.Enumeration.TempleRushSound;
import com.Arsanesia.TempleRush.Models.GameConfiguration;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;

public class BannerListener extends ClickListener {

	private TempleRush thegame;
	public BannerListener(TempleRush game){
		thegame = game;
	}
	public void clicked(InputEvent event, float x, float y){
		super.clicked(event, x, y);
		//if clicked, open browser
		try{
			thegame.resolveUri("market://details?id=com.ark.claw");
		}catch (Exception e){
			thegame.resolveUri("http://play.google.com/store/apps/details?id=com.ark.claw");
		}
	}
}
